package org.example.app.network.api;

import com.google.gson.GsonBuilder
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

object TestApi {
    val Api: TestAPI
    init {
        val gson = GsonBuilder()
            .setDateFormat("yyyy-MM-dd'T'HH:mm:ssZ")
            .create()
        val retrofit = Retrofit.Builder()
            .baseUrl("http://baidu.com/")
            //.addConverterFactory(GsonConverterFactory.create(gson))
            .build()
        Api = retrofit.create(TestAPI::class.java)
    }
}

